package com.ws.repository;

import com.github.pagehelper.Page;
import com.ws.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookRepository {
    Page<Book> getBookPage(Book book);

    Long saveBook(Book book);

    Book getBookBasicInfo(@Param("bookId") Long bookId);

    void delBook(@Param("bookId")Long bookId);

    void updateBook(Book book);

    List<Book> getBookList(Book book);
}